home *** CD-ROM | disk | FTP | other *** search
/ Stickerpedia Stickerbook / Stickerbook.iso / pc / DATA / main.dxr / 00015_Script_ [ internal ] Previous Button < prev    next >
Text File  |  2003-03-24  |  614b  |  46 lines

  1. property  pDirection
  2. property  spriteNum
  3. global   gCurInvisibleButton
  4.  
  5.  
  6.  
  7. on beginSprite me
  8.   pDirection = -1
  9. end
  10.  
  11.  
  12.  
  13.  
  14. on msUp me
  15.   switchImage pDirection
  16. end
  17.  
  18.  
  19.  
  20.  
  21. on lastImage mw, direction
  22.   
  23.    if gCurInvisibleButton = "" then sendsprite spriteNum, #show
  24.  if direction = pDirection then
  25.     sendsprite spriteNum, #hide
  26.     gCurInvisibleButton = "Previous"  
  27.   else
  28.     sendsprite spriteNum, #show
  29.   end if
  30.   
  31. end
  32.  
  33.  
  34. on notLastImage mw, direction
  35.    
  36.   if direction = pDirection then
  37.     gCurInvisibleButton = ""  
  38.     
  39.     sendsprite spriteNum, #show
  40.   end if
  41.   
  42. end
  43.  
  44.  
  45.  
  46.